home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 62
/
Volume 62 - JOGO DISK .iso
/
Games
/
penguin_dinner.swf
/
scripts
/
__Packages
/
classes
/
ui
/
ResumeGameMenu.as
< prev
next >
Wrap
Text File
|
2008-03-17
|
917b
|
32 lines
class classes.ui.ResumeGameMenu extends classes.ui.AbstractWidget
{
function ResumeGameMenu()
{
super();
classes.core.SoundManager.getInstance().startSound("message_popup");
this.doLater(this.init);
}
function init()
{
this.resume_btn.addEventListener(classes.ui.TextButton.CLICK,this,"onButtonClick");
this.restart_btn.addEventListener(classes.ui.TextButton.CLICK,this,"onButtonClick");
this.resume_btn.unlock();
this.restart_btn.unlock();
}
function onButtonClick(e)
{
var _loc0_ = null;
if((_loc0_ = e.target) === this.restart_btn)
{
classes.core.Application.getInstance().resetGameToRestart();
}
classes.core.Application.getInstance().startGame();
}
function dispose()
{
this.resume_btn.dispose();
this.restart_btn.dispose();
super.dispose();
}
}